<form action="/wizard/roleedit" method="post" id="editForm">
<input type="hidden" id="act" name="act" value="edit"/>
<input type="hidden" id="roleid" name="roleid" value="<?php echo $this->roleInfo["roleId"]; ?>"/>
<h3>Update Role Info:</h3><br>
    <?php echo $this->render('layouts/__info.phtml'); ?>
    <table class="normaltable" style="margin-left:10px">
    <tr><td>Name</td><td><input type="text" id="name" name="name" value="<?php echo $this->roleInfo["roleName"]; ?>"></td></tr>
    <tr><td>Description</td><td><textarea id="description" name="description"><?php echo $this->roleInfo["description"]; ?></textarea></td></tr>
    <tr><td colspan="2" style="text-align:center"><input type="button" value="change" onclick="updateRoleInfo()" id="editrole" name="editrole" /></td></tr>
    </table>
</form>

<script type="text/javascript">
function updateRoleInfo(){
	var formParams = $('editForm').toQueryString();	
	var request_uri = '/wizard/roleedit?ajax=1&t='+(new Date()).getTime();	
	PopBox.pop('loading ...', {loading:true});
	new Ajax(request_uri, {
			method: 'post',
			evalScripts : true,
			data: formParams,
			onComplete: function(){	
				PopBox.pop(this.response.text);
			}
	}).request();
}
</script>